Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] generateManifestBundle: Only glob files from project namespace #267

Merged
merged 2 commits into from
Jun 24, 2019

Conversation

RandomByte
Copy link
Member

@RandomByte RandomByte commented Jun 18, 2019

manifestBundler can only include resources from paths that are based on the projects namespace (see regex in manifestBundler ZIP creation).

For other paths the bundling fails because yazl can't add absolute paths.

Also, only resources located in the projects "/resources" should be relevant for manifest bundling.

The latter resovles UI5Lab/UI5Lab-library-simple#11 where with UI5 CLI v1.5.1 the only problem left is, that generateManifestBundle tries to bundle manifest.json resources found in the libraries /test-resources.

manifestBundler can only include resources from paths that are based on
the projects namespace (see regex in manifestBundler ZIP creation).

For other paths the bundling fails because yazl can't add absolute
paths.

Also, only resources located in the projects "/resources" should be
relevant for manifest bundling.

The latter resovles
UI5Lab/UI5Lab-library-simple#11 where with
UI5 CLI v1.5.1 the only problem left is, that generateManifestBundle
tries to bundle manifest.json resources found in the libraries
/test-resources.
@RandomByte RandomByte requested a review from devtomtom June 18, 2019 16:11
@coveralls
Copy link

coveralls commented Jun 18, 2019

Coverage Status

Coverage decreased (-0.0006%) to 85.926% when pulling b8b1892 on manifest-bundler-glob-from-ns-only into 080042c on master.

@matz3
Copy link
Member

matz3 commented Jun 19, 2019

Shouldn't we still add some error handling within the manifestBundler processor to prevent adding absolute paths to the zip?

Copy link
Member

@devtomtom devtomtom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@RandomByte RandomByte merged commit 31e43b5 into master Jun 24, 2019
@RandomByte RandomByte deleted the manifest-bundler-glob-from-ns-only branch June 24, 2019 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants